package com.jyx.ucenter.controller;

import com.jyx.api.oauth.UcenterControllerApi;
import com.jyx.framework.domain.ucenter.ext.JyxUserExt;
import com.jyx.ucenter.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/ucenter")
public class UcenterController implements UcenterControllerApi {
    @Autowired
    UserService userService;

    @Override
    @GetMapping("/getuserext")
    public JyxUserExt getUserExt(@RequestParam("username") String username) {
        return userService.getUserExt(username);
    }
}
